import axios from './axios'

// 获取部类
export function getCommodityType(params={limit:9999}){
  return axios({
    url:'/commodity-type/commodityType',
    params
  })
}

// 获取品名
export function getCommodityName(params){
  return axios({
    url:'/commodity-name/commodityName',
    params
  })
}

// 新建部类
export function postCommodityType(params){
  return axios({
    method: 'post',
    url:'/commodity-type/commodityType',
    params
  })
}

// 更新部类对象
export function putCommodityType(params){
  return axios({
    method: 'put',
    url:'/commodity-type/commodityType',
    params
  })
}

// 删除部类对象
export function delCommodityType(params){
  return axios({
    method: 'delete',
    url:'/commodity-type/commodityType',
    params
  })
}